Skip to content

Adjust lnR and lnd reconstruction - #1136

Draft
Debraheem wants to merge 7 commits into
mainfrom
EbF/feature/improve_lnd_lnR_reconstruction
Draft

Debraheem wants to merge 7 commits into
mainfrom
EbF/feature/improve_lnd_lnR_reconstruction

Conversation

@Debraheem

@Debraheem Debraheem commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

This is a draft. In hb_2M, rebuilding density from rounded radii in a thin shell made the pressure interval in the Brunt term 83 times smaller and stalled the solve. I remap shell volumes directly, use the same lnR and lnd mapping in the solver and on restart, and keep the start-of-step density check for changes beyond roundoff. The TZO hook and fixed-radius u_flag mass scaling now update density where they change the mass.

The helium-flash replay reaches stable core helium burning with the relative mass equation enabled. The short tests of both mass edits match with the check on and off and after a photo restart. I’d still like TestHub to cover the full TZO and AMR cases and check energy across remeshing and mass edits. One-page note (PDF)

Keep radius and density derived from the stored logarithms throughout the solve. Use log1p of the shell-to-inner volume ratio to evaluate the mass residual without subtracting two absolute log radii.
Check shell mass closure before remeshing on the shared evolution path. Keep the RSP exclusion, use the same guarded check for both velocity formulations, and preserve the saved mesh during photo loading.
Scale density with envelope mass in the TZO core-growth hook and include cell-centered velocity models in fixed-radius mass relaxation. Both edits retain the existing temperature and composition.
@Debraheem
Debraheem force-pushed the EbF/feature/improve_lnd_lnR_reconstruction branch from f3080b9 to 3ae80bf Compare November 26, 2026 20:16
@Debraheem Debraheem added the enhancement New feature or request label Nov 26, 2026
Debraheem added a commit that referenced this pull request Nov 26, 2026
Set set_rho_to_dm_div_dV to false during the helium flash and
regenerate the TAMS and ZACHeB fixtures. The test reaches HB_limit
and passes the subsequent core helium burning check.

See #1136 for the reconstruction work.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant